<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="table-responsive">
<table class="cntable table table-bordered dataTable table-customer ">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th style="width:80px">用户标识</th>
			<th style="width:80px">用户名</th>
			<th style="width:80px">昵称</th>
			<th style="width:100px">性别</th>
			<th style="width:100px">电话</th>
			<th style="width:100px">地区</th>
			<th style="width:130px">注册时间</th>
			<th style="width:80px">介绍人标识</th>
			<th style="width:100px">客户级别</th>
		    <th style="width:50px">一代数</th>
			<th style="width:50px">二代数</th>
			<th style="width:80px">一代高创数</th>
			<th style="width:80px">二代高创数</th>
			<th style="width:100px">一代创客数</th>
			<th style="width:130px">二代创客数</th>
			<th style="width:100px">一代会员数</th>
			<th style="width:100px">二代会员数</th>
			<th style="width:100px">一代游客数</th>
			<th class="text-center text-muted" style="width:70px">
				<i class="icon-checkmark3"></i>操作
			</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="customer" items="${customers}" varStatus="status">
			<tr data-id="${customer.id}">
				<td>${status.index+1}</td>
				<td>${customer.userIdentity}</td>
				<td>${customer.username}</td>
				<td>${customer.nickname}</td>
				<td> 
				   <t:provider packageName="default" enumClassName="SexStatus" value="${customer.sex}"/> 
				</td>
				<td>${customer.phone}</td>
				<td>${customer.region}</td>
				<td>
				    <fmt:formatDate value="${customer.registDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>${customer.refereeIdentity}</td>
				<td>
				    <t:provider packageName="cust" enumClassName="CustomerLevel" value="${customer.level}"/>  
				</td>
				<td>${customer.firstGeneration}</td>
				<td>${customer.secondGeneration}</td>
				<td>${customer.firstHighMaker}</td>
				<td>${customer.secondHighMaker}</td>
				<td>${customer.firstMaker}</td>
				<td>${customer.secondMaker}</td>
				<td>${customer.firstVip} </td>
				<td>${customer.secondVip} </td>
				<td>${customer.firstVisitor}</td>
				<td class="text-center ">
				    <input type="hidden" value="${customer.id}" class="customerId" />
				    <a href="#" class="text-slate-700 look"><i class="icon-magazine "></i>查看我的团队</a>           
				</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
<div class="table-responsive">
<script type="text/javascript">
 $(".look").click(function(){
	var id=$(this).parent().find(".customerId").val();
		top.openModal("/admin/cust/personRelation/secondIndex?key="+id,"personRelation_form","子二代信息",1200,500);
}) 
</script>
